package com.desksoft.ecommerce.vo.mall;

import java.util.Date;
import java.util.List;

import com.desksoft.ecommerce.entity.logistics.dto.Vendorinfo;
import com.desksoft.utility.pagination.Page;

/**
 * 
 * @author LiuWenLong
 * @version 2012-12-7 下午4:18:16
 * @description TODO
 * @copyright 杭州迪科软件 保留所有权利
 */
public class VendorInfoVO extends Vendorinfo {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;
	private static String TRUE_FLAG = "1";
	@SuppressWarnings("unused")
	private static String FALSE_FLAG = "0";

	private Page<ProductsInfo> productPage;
	private int windowshopProductNum;
    private String quality1;
    private String staff;
    private String industry;
	private String checkcode;
	private String isissuer;
	private String businessid;
	private String cardNo;
	private Integer siteid;
	private Date applytime;
	private String kaishi;
	private String jieshu;
	private int totalcount;
	private Integer namekey;
	private String delectcode;
	private String allfiles;
	private String storenamekey;
	private String newPassword;
	
	public String getNewPassword() {
		return newPassword;
	}

	public void setNewPassword(String newPassword) {
		this.newPassword = newPassword;
	}

	public String getStorenamekey() {
		return storenamekey;
	}

	public void setStorenamekey(String storenamekey) {
		this.storenamekey = storenamekey;
	}

	public String getAllfiles() {
		return allfiles;
	}

	public void setAllfiles(String allfiles) {
		this.allfiles = allfiles;
	}

	public String getDelectcode() {
		return delectcode;
	}

	public void setDelectcode(String delectcode) {
		this.delectcode = delectcode;
	}

	public Integer getNamekey() {
		return namekey;
	}

	public void setNamekey(Integer namekey) {
		this.namekey = namekey;
	}

	public int getTotalcount() {
		return totalcount;
	}

	public void setTotalcount(int totalcount) {
		this.totalcount = totalcount;
	}

	public String getKaishi() {
		return kaishi;
	}

	public void setKaishi(String kaishi) {
		this.kaishi = kaishi;
	}

	public String getJieshu() {
		return jieshu;
	}

	public void setJieshu(String jieshu) {
		this.jieshu = jieshu;
	}

	public Date getApplytime() {
		return applytime;
	}

	public void setApplytime(Date applytime) {
		this.applytime = applytime;
	}


	public Integer getSiteid() {
		return siteid;
	}

	public void setSiteid(Integer siteid) {
		this.siteid = siteid;
	}

	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	public String getBusinessid() {
		return businessid;
	}

	public void setBusinessid(String businessid) {
		this.businessid = businessid;
	}

	public String getIsissuer() {
		return isissuer;
	}

	public void setIsissuer(String isissuer) {
		this.isissuer = isissuer;
	}

	public String getCheckcode() {
		return checkcode;
	}

	public void setCheckcode(String checkcode) {
		this.checkcode = checkcode;
	}

	public String getStaff() {
		return staff;
	}

	public void setStaff(String staff) {
		this.staff = staff;
	}

	public String getIndustry() {
		return industry;
	}

	public void setIndustry(String industry) {
		this.industry = industry;
	}


	public String getQuality1() {
		return quality1;
	}

	public void setQuality1(String quality1) {
		this.quality1 = quality1;
	}

	public static void main(String[] args) {
		System.out.println("011".charAt(0));
		System.out.println(11);
	}

	/**
	 * @author LiuWenLong
	 * @version 2012-12-12 下午4:10:10
	 * @description 正品
	 * @return
	 */
	public boolean getQuality() {
		if (this.servicesafeguard != null && this.servicesafeguard.length() > 0
				&& TRUE_FLAG.equals(String.valueOf(this.servicesafeguard.charAt(0)))) {
			return true;
		}
		return false;
	}

	/**
	 * @author LiuWenLong
	 * @version 2012-12-12 下午4:10:30
	 * @description 发票
	 * @return
	 */
	public boolean getInvoice() {
		if (this.servicesafeguard != null && this.servicesafeguard.length() > 1
				&& TRUE_FLAG.equals(String.valueOf(this.servicesafeguard.charAt(1)))) {
			return true;
		}
		return false;
	}
	
	/**
	 * @author LiuWenLong
	 * @version 2012-12-12 下午4:10:43
	 * @description 七天退换
	 * @return
	 */
	public boolean getSeven() {
		if (this.servicesafeguard != null && this.servicesafeguard.length() > 2
				&& TRUE_FLAG.equals(String.valueOf(this.servicesafeguard.charAt(2)))) {
			return true;
		}
		return false;
	}

	public Page<ProductsInfo> getProductPage() {
		return productPage;
	}

	public void setProductPage(Page<ProductsInfo> productPage) {
		this.productPage = productPage;
	}

	public int getWindowshopProductNum() {
		return windowshopProductNum;
	}

	public void setWindowshopProductNum(int windowshopProductNum) {
		this.windowshopProductNum = windowshopProductNum;
	}

}
